<!-- $Id: comment_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->

{include file="pageheader.htm"}
<!-- comment content list -->
<div class="main-div">
    <table width="100%">
        <tr>
            <a href="mailto:{$msg.email}"><b>{if $user_name}{$user_name}{else}{$lang.anonymous}{/if}</b></a>&nbsp;{$lang.from}
             &nbsp;{$msg.add_time}&nbsp;{$lang.to}&nbsp;<b> {$goods_name}</b>&nbsp; 晒单操作
        </tr>
        <tr>
          <td><hr color="#dadada" size="1"></td>
        </tr>
        <tr>
            <td style="margin-top:20px">
              {foreach from=$gallery item=info}
              <div style="float:left;height:150px;width:200px;margin-top:20px" >
                  <img style="height:100px;height:100px" align="center" src="../{$info.img_url}"><br>
                  <a href="javascript:void(0)" id="{$info.img_id}" onclick="pic_del(this)">【✘】</a><br>
                  <div>用户描述：{$info.img_desc}</div>
              </div>
              {/foreach}
            </td>
        </tr>

        <tr>
          <td align="center">
            {if $msg.status eq "0"}
            <input type="button" onclick="location.href='shaidan_manage.php?act=check&check=allow&id={$msg.share_id}'" value="{$lang.allow}" class="button" />
            {else}
            <input type="button" onclick="location.href='shaidan_manage.php?act=check&check=forbid&id={$msg.share_id}'" value="{$lang.forbid}" class="button" />
            {/if}
        </td>
        </tr>
      </table>
 </div>
 <div class="main-div">
      <table border="0">
         <tr>
              <td style="width:100px">商品名称：</td>
              <td>{$goods_name}</td>
         </tr>
         <tr>
               <td>晒单标题：</td>
               <td>{$msg.share_title}</td>
         </tr>
         <tr>
               <td>晒单描述:</td>
                <td>{$msg.share_content}</td>
          </tr>
      </table>
 </div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
    function pic_del($this){
       var id = $this.getAttribute("id");
        //alert(id);
        Ajax.call('shaidan_manage.php?act=pic_del&img_id='+id,'', del_pic_return, 'POST', 'text');
    }
 function del_pic_return(result){
     window.location.reload(true);
 }
</script>
{/literal}
{include file="pagefooter.htm"}